<?php
// +----------------------------------------------------------------------
// | 后台用户管理
// +----------------------------------------------------------------------
namespace app\common\model;
use think\Model;
use think\Validate;

class OrderGoods extends Model
{
	//商品，一对一关联
	public function goods(){
        return $this->hasOne('goods','id','goods_id');
    }
  	//套餐内商品列表，一对多关联 
	public function goodsMeal(){
        return $this->hasMany('GoodsMeal','pid','goods_id');
    }
}
